@import "../style/variables.less";
@import "../style/baseStyle.less";

.product-control {
    .padding-bottom();
 
    .price();
 
    .container {
        padding-top: 10px;
        .box {
            padding: 10px 0px;
        }
    }

    hr {
        border-top-width: 20px;
        margin: 0;
        border-top-color:whitesmoke;
    }

    .comments {
        padding-bottom: @v-padding;

        img {
            margin-top: 10px;
        }
    }

    .stars {
        color: @star-color;
    }

    .active-tab {
        padding-bottom: 12px;
        border-bottom: 4px solid @gray-dark;
    }
    
    img {
        height: auto;
        width: 100%;
    }

    header nav {
       &:first-child {
            opacity: 0;
        }
        button{
            opacity: 0.5;
        }
        .icon-heart {
            margin-top: 2px;
        }
        .icon-heart-empty {
            margin-left: 1px;
        }
    }

    .pull-up-indicator {
        padding: 10px;
        text-align: center;
        font-size: 14px;
        font-weight: bold;

        i {
            margin-right: 4px;
        }
    }

    .pull-down-indicator();

    .product-panel {

        display: none;

        

        nav {
            color: @bg-color;
            height: @nav-height;
            font-size: @topbar-font-size;
            width: 100%;
            
            .nav-tabs {
                border-bottom: none;
                width: 100%;
                position: absolute;
            }
        }
    }

    &.immersion {
        .product-panel {
            nav {
                padding-top: @immersion-height;    
                height: @nav-height + @immersion-height;    
            }
        }
    }

    .list-group {
        margin: 0;
    }
    .list-group-item {
        border-right: 0;
        border-left: 0;
        &:first-child {
            border-top: 0;
        }
        &:last-child {
            border-bottom: 0;
        }
    }

    &.content {
        @padding: 10px;
        padding: 0 @padding 0 @padding;
        img {
            height: auto;
            width: ~"calc(100% + 20px)";
            margin-left: 0 - @padding;
        }
    }

    header nav {
        button {
            background-color:@brand-primary;
        }
    }
    .product-panel {
        nav {
            background-color: @brand-primary;
        }
    }
}


.product-control-footer {
    width: 100%;
    padding: 10px 10px 0px 10px;
    background-color: @gray-lighter;
    height: 50px;
    bottom: 0;
    z-index: 120;

    .icon-shopping-cart {
        font-size: 28px;
    }

    .badge {
        position: relative;
        top: -16px;
        left: 0px;
    }
}

.panel {
    .modal {
        transform: translateX(100%);
        transition: 0.4s ease-in;

        .modal-dialog {
            background-color: @bg-color;;
            margin: 0px;
            top: 0px;
            left: 60px;
            bottom: 0;
            right: 0;
            border: none;

            .modal-content {
                border: none;
                box-shadow: none;
                padding: 0;
                display: block;

                .modal-header {
                    padding: 0;
                    padding-bottom: 10px;
                    ul {
                        height: 50px;
                        li {
                            button {
                                margin: 0;
                                color: white;
                                font-weight: bold;
                                font-size: 16px;
                                border: none;
                                background-color: inherit;
                                padding: 14px 10px;
                            }
                        }
                    }
                }
                .modal-body {
                    // padding-bottom: 120px;
                    overflow-y: scroll;
                }
                .modal-footer {
                    position: fixed;
                    // width: 100%;
                    bottom: 0px;
                    background-color: @bg-color;
                    input {
                        text-align: center;
                        -webkit-appearance: none;   //取消文本框的阴影
                    }
                }
            }
        }
    }

    .modal-backdrop.in {
        //opacity: @modal-backdrop-opacity;
        transition: opacity 0.4s ease-in;
        position: fixed !important;
    }

    .cust-prop {
        margin-bottom: 8px;
        margin-right: 10px;
    }
}


